import reg from '../utils/request.js'

export function getCateList(params) {
  return reg.get('/goods/catelist', params)
}
export function deleteCate(params) {
  return reg.get('/goods/delcate', params)
}
export function addNewCate(params) {
  return reg.post('/goods/addcate', params)
}
export function editCate(params) {
  return reg.post('/goods/editcate', params)
}
export function getGoods(params) {
  return reg.get('/goods/list', params)
}
export function delGoods(params) {
  return reg.get('/goods/del', params)
}
export function getGoodItem(params) {
  return reg.get('/goods/item', params)
}
export function editGoods(params) {
  return reg.post('/goods/edit', params)
}
export function getAllpro(params) {
  return reg.get('/goods/categories', params)
}
export function addNewGoods(params) {
  return reg.post('/goods/add', params)
}
